<%--
  Created by IntelliJ IDEA.
  edu.sctu.User: Administrator
  Date: 2018-4-9
  Time: 19:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    session.setAttribute("a", 30);

    pageContext.setAttribute("a", 10);
    request.setAttribute("b", 20);
    application.setAttribute("d", 40);

    pageContext.setAttribute("a", 100);
//    String username = "chen";
    // write(字符串)
//    out.write(String.valueOf(pageContext.getAttribute("a")));
%>


<h1>a = ${a}</h1>

<%--<hr/>--%>

<%--<h1>${pageScope.a}</h1>--%>
<%--<h1>${requestScope.b}</h1>--%>
<%--<h1>${sessionScope.c}</h1>--%>
<%--<h1>${applicationScope.d}</h1>--%>



</body>
</html>
